const db=require('../db/index')
exports.getSaveType=(req,res)=>{
    db.query('select * from savetype',(err,result)=>{

        if(err){
            return req.resSend(401,err)
        }
        if(result.length===0){
            return req.resSend(404,'暂无存钱类型信息！')
        }
        res.send({
            status:200,
            msg:'存钱类型获取成功！',
            data:result
        })
    })
}